<!--************************************************************ -->
<!--* 文件创建日期：2010                                  * -->
<!--* 文件修改日期：			                                   * -->
<!--************************************************************ -->
<!--JSP初始化设置-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.infomanage.enums.*"%>
<%@page import="com.infomanage.service.worklog.*"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	String attendanceId = request.getParameter("attendanceId");
    if(attendanceId == null) attendanceId = "";
    
    AttendanceItem attItem = AttendanceService.loadAttendance(request, response, out);
    int personId = -1;
    String personname = "";
    String begintime = "";
    String endtime = ""; 
    String deptname = "";
    int deptId = -1;
    int result = -1;
    String description = "";
    if(attItem != null) {
    	Attendance att = attItem.getBean();
    	Person person = attItem.getPerson();
	    personId = att.getPersonId();
	    personname = person.getName();
	    begintime = att.getBegintime();
	    endtime = att.getEndtime();
	    result = att.getResult();
	    description = att.getDescription();
	    if(description == null) description = "";
    } 
%>
<html>
<head>
	<title>员工考勤</title>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">	
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>人员考勤</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable">
					<col width="30%">
					<col width="70%">
					<tr>
						<td class="field">
							姓名
						</td>
						<td>
							<%=personname%>
						</td>
					</tr>
					<tr>
						<td class="field">
							开始日期
						</td>
						<td>
							<%=com.infomanage.util.TimeUtil.toFullTime(begintime) %>
						</td>
					</tr>
					<tr>
						<td class="field">
							结束日期
						</td>
						<td>
							<%=com.infomanage.util.TimeUtil.toFullTime(endtime) %>
						</td>
					</tr>
					<tr>
						<td class="field">
							考勤情况
						</td>
						<td>
							<%=AttendanceResultType.valueOf(result).title()%>
						</td>
					</tr>
					<tr style="height: 100px">
						<td class="field">
							备注
						</td>
						<td valign="top">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=description %></textarea>
						</td>
					</tr>
				</table>
		</tr>
		<tr>
			<td colspan="2" class="tableBtn">
				<span onclick="window.print();">打印</span>
				<span onclick="window.close();">关闭</span>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="2">
				&nbsp;
			</td>
		</tr>
	</table>
</body>
</html>